<!DOCTYPE html>
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
<body style="font-size: 21.7589px;">
<div id="app">
    <div id="shadow" style="display: none;"></div>
    <header class="top"><span style="display: none;">
        加载中...</span> <span>忘记密码</span> <!---->
        <div class="iconfont back" style="display: none;"></div>
        <a href="{:U('Index/login')}" class="iconfont back"></a>
    </header>
    <nav class="bottom" style="display: none;"><a href="/index" class=""><i class="iconfont"></i>
        <p>购彩大厅</p></a> <a href="/activity" class=""><i class="iconfont"></i>
        <p>活动中心</p></a> <a href="/center" class=""><i class="iconfont"></i>
        <p>发现</p></a> <a href="/userCenter" class=""><i class="iconfont"></i>
        <p>我的账户</p></a></nav>
    <div data-v-f9a5290e="" class="main" s="[object Object]">
        <table data-v-f9a5290e="">
            <tbody data-v-f9a5290e="">
            <tr data-v-f9a5290e="">
                <td data-v-f9a5290e="">账号</td>
                <td data-v-f9a5290e="">
                    <input data-v-f9a5290e="" type="email" id="user" tag="帐号" placeholder="请输入账号" class="va17" name="UserName">
                </td>
            </tr>
            <tr data-v-f9a5290e="">
                <td data-v-f9a5290e="">验证码</td>
                <td data-v-f9a5290e="">
                    <input data-v-f9a5290e="" placeholder="请输入验证码"  id="yanzhengma" type="text" class="userInput">
                </td>
                <td data-v-f9a5290e="" style="width: 100px">
                     <span class="anym" >
                         <img id="yzm"  name="yzm" src="/index.php/Api/Swimer/yzm" onclick="this.src='/index.php/Api/Swimer/yzm/time='+Math.random();" style="cursor: pointer;width: 105px;height: 30px" title="点击获取"/>
                     </span>
                </td>
            </tr>
            <tr data-v-f9a5290e=""></tr>
            </tbody>
        </table>
        <div data-v-f9a5290e="" class="loginBtn BTN"><a data-v-f9a5290e="" onclick="sav()">确定</a></div>
    </div>
</div>
<div id="zhanghao_kong" class="layermbox layermbox0 layermshow" index="10" style="display: none">
    <div class="laymshade"></div>
    <div class="layermmain">
        <div class="section">
            <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                <button class="layermend"></button>
                <div class="layermcont">·账号不能为空·</div>
                <div class="layermbtn layermbtn_1"><span type="1">确定</span></div>
            </div>
        </div>
    </div>
</div>
<div id="yanzhengma_kong" class="layermbox layermbox0 layermshow" index="10" style="display: none">
    <div class="laymshade"></div>
    <div class="layermmain">
        <div class="section">
            <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                <button class="layermend"></button>
                <div class="layermcont">·验证码不能为空·</div>
                <div class="layermbtn layermbtn_1"><span type="1">确定</span></div>
            </div>
        </div>
    </div>
</div>
<div id="zhanghao_cunzai" class="layermbox layermbox0 layermshow" index="10" style="display: none">
    <div class="laymshade"></div>
    <div class="layermmain">
        <div class="section">
            <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                <button class="layermend"></button>
                <div class="layermcont">·该账号不存在，请重新输入·</div>
                <div class="layermbtn layermbtn_1"><span type="1">确定</span></div>
            </div>
        </div>
    </div>
</div>
<div id="yzm_buzhengque" class="layermbox layermbox0 layermshow" index="10" style="display: none">
    <div class="laymshade"></div>
    <div class="layermmain">
        <div class="section">
            <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                <button class="layermend"></button>
                <div class="layermcont">·验证码不正确，请重新输入·</div>
                <div class="layermbtn layermbtn_1"><span type="1">确定</span></div>
            </div>
        </div>
    </div>
</div>
</body>
</html>


<script>
    $(".layermbtn").click(function(){
        $(".layermbox").hide();
        window.location.href = "";
    })
    function sav(){
        var user = $("#user").val();
        var yzm = $("#yanzhengma").val();
        if(user == ''){
            $("#zhanghao_kong").show();
            return false;
        }
        if(yzm == ''){
            $("#yanzhengma_kong").show();
            return false;
        }
        $.ajax({
            type: "POST",
            url: "{:U('Yz/resetpwd')}",
            data: {'user':user,'yzm':yzm},
            success: function(dat){
                if(dat==1){
                    $("#zhanghao_cunzai").show();
                    return false;
                }else if(dat==2){
                    $("#yzm_buzhengque").show();
                    return false;
                }else if(dat==3){
                    window.location.href="/Index/resetWay/user/"+user;
                }
            }
        });
    }
</script>